Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Graphics /
Chapter 2 - Geometric Shapes / Geometric Shapes Reference
Data Types


The Point Structure

You use the gxPoint structure in a number of situations; for example, to specify the geometry of a point shape, to specify the position of geometric points in the geometries of other geometric shape types, to specify a location to hit-test, to specify the position of a bitmap, and so on.

The gxPoint structure is defined as follows:

struct gxPoint {
   Fixed    x;
   Fixed    y;
};
Field Description
x
A horizontal distance. Greater values of the x field indicate distances further to the right.
y
A vertical distance. Greater values of the y field indicate distances further down.
The location of the origin depends on the context where you use the point; for example, it might be the upper-left corner of a view port.

Notice that the x and y fields are of type Fixed. QuickDraw GX allows you to specify fractional coordinate positions.

For more information about coordinates and coordinate spaces, see Inside Macintosh: QuickDraw GX Objects.

For more information about points and point shapes, see "Point Shapes" on page 2-16.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help